package com.aptech.controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts2.ServletActionContext;

import com.aptech.dao.UserDao;
import com.aptech.exception.BaseException;
import com.opensymphony.xwork2.ActionSupport;

public class JsonAction extends ActionSupport{
	public void createExceptionResponse(){
		UserDao dao = new UserDao();
		dao.findUser();
	}
	
	public void createDataResponse(){
		HttpServletRequest request = ServletActionContext.getRequest();
		request.setAttribute("response_data", "123456");
	}
}
